wayland: Remove a useless switch
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Apr 2019 16:49:38 +0000 (16:49 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
We are setting the title unconditionally, now

gdk/wayland/gdksurface-wayland.c

index 6b22635fd3997039326a1632520468bd400bbb0e..55609fde2850254a8e62c76589c6d306960fdf3d 100644 (file)
@@ -575,18 +575,7 @@ _gdk_wayland_display_create_surface_impl (GdkDisplay     *display,
       gdk_display_get_n_monitors (display) > 0)
     impl->scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (display, 0));
 
-  impl->title = NULL;
-
-  switch (GDK_SURFACE_TYPE (surface))
-    {
-    case GDK_SURFACE_TOPLEVEL:
-    case GDK_SURFACE_TEMP:
-      gdk_surface_set_title (surface, get_default_title ());
-      break;
-
-    default:
-      break;
-    }
+  gdk_surface_set_title (surface, get_default_title ());
 
   if (real_parent == NULL)
     display_wayland->toplevels = g_list_prepend (display_wayland->toplevels, surface);